py_score = input('请输入你的Python课程成绩:')
c_score = input('请输入你的C语言成绩:')

if py_score.isdigit() and c_score.isdigit():
    py_score = int(py_score)
    c_score = int(c_score)
    if py_score >= 60 and c_score >= 60:
        print('成绩合格！')
    elif py_score >= 60 or c_score >= 60:
        print('有点偏科！')
    else:
        print('请重修！')
else:
    if not py_score.isdigit():
        print('Python的成绩输入错误！')
    if not c_score.isdigit():
        print('C语言的成绩输入错误！')

